package edu.nf.vrs.vaccination.dao;


import edu.nf.vrs.vaccination.entity.Vaccination;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Author: @Wai
 * Date: 2022-3-30
 */

public interface VaccinationDao {

    /**
     * 根据区域查询接种点
     * @param areaId
     * @param pageNum
     * @param pageSize
     * @return
     */
    List<Vaccination> listVaccination(@Param("areaId") Integer areaId,
                                      @Param("pageNum") Integer pageNum,
                                      @Param("pageSize") Integer pageSize);

    /**
     * 根据ID查询接种点信息
     * @param id
     * @return
     */
    Vaccination getVaccinationById(Integer id);
    /**
     * 添加接种点
     * @param vaccination
     */
    void saveVaccination(Vaccination vaccination);

    /**
     * 修改接种点
     * @param vaccination
     */
    void updateVaccination(Vaccination vaccination);
}
